import { getAll, insertOne } from "../dao/material.dao"


export const newMaterial = async (doc)=>{
    await insertOne(doc)
}

export const listMaterials = async ()=>{
    const res = await getAll()
    return res
}